home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 11
/
011.d81
/
line writer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
407b
|
12 lines
12 print"type:":b$="": rem b$ string is cleared
20 geta$:ifa$=""then20: rem get one typed character
22 ifa$=chr$(13)then30: rem the <return> key
25 ifb$=""anda$=chr$(20)then20
26 ifa$=chr$(20)thenb$=left$(b$,len(b$)-1):goto29
27 b$=b$+a$: rem add a$ to end of b$ string
29 print a$;:goto 20: rem get next character
30 open 1,4: rem data channel for printer
40 print#1,b$:print: rem print data, go to next line
50 close 1: rem close data channel
60 goto12: rem go back to step 1